#编译镜像
docker build -t coffee:0.1 .
#登录阿里云镜像仓库
docker login --username=暮雨ufe registry.cn-hangzhou.aliyuncs.com
#tag镜像
docker tag 4cd542dda99f registry.cn-hangzhou.aliyuncs.com/chen-nbufe/chen_docker:0.1
#push上传镜像
docker push registry.cn-hangzhou.aliyuncs.com/chen-nbufe/chen_docker:0.1
#pull拉取镜像
docker pull registry.cn-hangzhou.aliyuncs.com/chen-nbufe/chen_docker:0.1
#运行镜像
docker run -d -p 8080:8080 --name coffee registry.cn-hangzhou.aliyuncs.com/chen-nbufe/chen_docker:0.1